<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div class="container">
    <video controls autoplay src="./videoDemo.mp4">
    </video>
  </div>
</body>
<script>
  const video = document.querySelector('video');
  video.play();
</script>
<style>
  .container {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  video {
    width: 50%;
    height: auto;
  }
</style>
</html>